import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

import Layout from '@/views/layout/Layout'
import Form from '@/views/form'
import Table from '@/views/table'

let routes = [{
  path: '/',
  component: Layout,
  hidden: true,
  children: [{
    path: '/form',
    component: Form,
    name: '表单'
  },{
    path: '/table',
    component: Table,
    name: '表格'
  }]
}]
 

const router = new Router({
  routes: routes
})

export default router